﻿<phone:PhoneApplicationPage
    x:Class="A_larm_Shake.page_timer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c4fToolkit="clr-namespace:Coding4Fun.Toolkit.Controls;assembly=Coding4Fun.Toolkit.Controls"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar BackgroundColor="#FF1699DD">
            <shell:ApplicationBarIconButton x:Name="bt_setTimer" IconUri="/Assets/AppBar/edit.png" Text="Set Timer" Click="bt_setTimer_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="#FF1699DD">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->

        <!--ContentPanel - place additional content here-->
        <StackPanel Grid.Row="0" Margin="12,10,18,0" Height="34" VerticalAlignment="Top" Background="#FF01669A">
            <TextBlock Text="Timer Shake " Style="{StaticResource PhoneTextNormalStyle}" Foreground="White"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="15,0,15,30">
            <Grid.Background>
                <SolidColorBrush Color="#FF4DA3D6" Opacity="2.5499999523162842"/>
            </Grid.Background>
            <c4fToolkit:TimeSpanPicker  x:Name="timeSpan" Value="0" HorizontalAlignment="Center" Margin="159,54,149,465" Width="142" FontWeight="Bold" FontSize="36" Visibility="Collapsed"/>
            <Button x:Name="bt_StartTimer" Content="Start" HorizontalAlignment="Center" Margin="37,385,293,0" VerticalAlignment="Top" Width="120" Click="bt_StartTimer_Click"/>
            <Button x:Name="bt_CancelTimer" Content="Cancel" HorizontalAlignment="Center" Margin="299,385,31,0" VerticalAlignment="Top" Width="120" Click="bt_CancelTimer_Click"/>
            <TextBlock x:Name="tb1" HorizontalAlignment="Left" Height="66" Margin="37,273,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="382" FontSize="48" TextAlignment="Center" Foreground="White"/>
            <TextBlock x:Name="tb2" HorizontalAlignment="Left" Height="66" Margin="37,337,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="382" FontSize="48" TextAlignment="Center" Visibility="Collapsed"/>
            <TextBlock x:Name="tb3" HorizontalAlignment="Left" Height="66" Margin="37,403,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="382" FontSize="48" TextAlignment="Center" Visibility="Collapsed"/>
            <MediaElement x:Name="mesound" HorizontalAlignment="Left" Height="100" Margin="10,484,0,0" VerticalAlignment="Top" Width="100" Source="/Assets/alarm_sound.mp3" AutoPlay="False" Volume="1" BufferingTime="0:0:10" />
            <TextBlock x:Name="tb4" HorizontalAlignment="Left" Height="66" Margin="37,474,0,0" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Top" Width="382" FontSize="48" TextAlignment="Center" Visibility="Collapsed"/>
            <Image x:Name="meter" HorizontalAlignment="Center" Height="160" Margin="0,80,0,0" VerticalAlignment="Top" Width="160" Source="/Assets/meterimg/temp.png"/>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>